package com.ksyun.ks3.util;

import java.util.HashMap;
import java.util.Map;

import okhttp3.Headers;

public class ResponseUtils {
    public static Map<String, String> parseResponseHeaders(Headers responseHeaders) {
        Map<String, String> headers = new HashMap<String, String>();
        for (int i = 0; i < responseHeaders.size(); i++) {
            headers.put(responseHeaders.name(i), responseHeaders.value(i));
        }
        return headers;
    }
}
